package hw06;

import java.io.File;

public class hw1 {

	public static void main(String[] args) {

				File file=new File("E:\\AAA\\BBB");
				delete(file);
	}
	
	private static void delete(File src) {

		File[] listFiles = src.listFiles();
		
			for (File file : listFiles) {
				if(file.isFile()){					
					 file.delete();
				}else{							
					delete(file);
				}
			}
			src.delete();
		}
		
	}

